import request from '@/utils/request'
// 审核通过
export function checkProjectByEngine(data,taskId) {
  return request({
    url: '/task/complete/'+taskId,
    method: 'put',
    data: data
  })
}
// 审核通过
export function checkProject(data) {
  return request({
    url: '/remark/project/check',
    method: 'put',
    data: data
  })
}
// 查询标注提交记录列表
export function listProject(query) {
  return request({
    url: '/remark/project/list',
    method: 'get',
    params: query
  })
}

// 查询标注提交记录详细
export function getProject(submitId) {
  return request({
    url: '/remark/project/' + submitId,
    method: 'get'
  })
}

// 新增标注提交记录
export function addProject(data) {
  return request({
    url: '/remark/project',
    method: 'post',
    data: data
  })
}

// 修改标注提交记录
export function updateProject(data) {
  return request({
    url: '/remark/project',
    method: 'put',
    data: data
  })
}

// 删除标注提交记录
export function delProject(submitId) {
  return request({
    url: '/remark/project/' + submitId,
    method: 'delete'
  })
}
